import type { ListPageParams } from '../read/type';

export interface GetFiveWisdomListParams extends ListPageParams {
  month: string;
}

export interface FiveWisdomItem {
  detailId: number;
  courseId: number;
  week: number;
  dayOfWeek: number;
  fileUrl: string;
  title: string;
  sortOrder: number;
  status: number;
  wisdomType: number; // 1-智商 2-情商 3-财商 4-逆商 5-语商
  progress: number; // 进度
  coverPic: string; // 封面
}
export interface GetFiveWisdomListResult {
  iqNum: number; // 智商总值
  eqNum: number;
  fqNum: number;
  aqNum: number;
  lqNum: number;
  hasFqNum: number;
  hasAqNum: number;
  hasEqNum: number;
  hasIqNum: number; // 智商
  hasLqNum: number;
  month: string;
  weeks: number;
  fiveWisdomItems: Array<{
    week: number;
    detailList: Array<FiveWisdomItem>;
  }>;
  [key: string]: any;
}

export interface GetFiveWisdomDetailParams extends ListPageParams {
  detailId: number | string;
}

export interface GetFiveWisdomDetailResult {
  courseId: number;
  dayOfWeek: number;
  detailId: number;
  fileUrl: string;
  progress: number;
  sortOrder: number;
  status: number;
  title: string;
  week: number;
  wisdomType: number;
  coverPic: string; // 封面
  videoDuration: string; // 视频时长
  [key: string]: any;
}

export interface AttendClassStudent {
  id: string;
  studentId: string;
  rollcall: string;// 4-正常上课,1-请假，3-未签到
  rollcallTime: string;// 签到时间
  realEndtime: string;// 签退时间
  classId: string;
  evaluate: string;
  startDate: string;
  endDate: string;
  courseId: string;
  status: string;
  usedHours: string;
  residueHours: string;
  evaluateStatus: string;
}

export interface GetRollcallRecordResult {
  custTotal: number; // 累计托管天数
  curMonthTotal: number; // 当月托管天数
  residueTotal: number; // 剩余托管天数
  courseHasLearn: number; // 课程已学天数
  attendClassStudentList: Array<AttendClassStudent>;
}
